package com.huanzhidadi.tomcat;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
public class RequestController {

    @GetMapping("/test")
    public String test() throws InterruptedException {
        log.info("线程：{}", Thread.currentThread().getName());
        Thread.sleep(5000);
        return "success";
    }
}
